package com.etone.smartAudit.vo.dataModel;

import com.etone.smartAudit.enums.DataBaseType;
import com.etone.smartAudit.enums.UpdateFrequency;
import com.etone.smartAudit.vo.FileVO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * @author: sovy
 * @date: 2020/11/12
 * @description:
 */
@AllArgsConstructor
@NoArgsConstructor
@Builder
@Data
@ApiModel(value = "数据模型详情")
public class DataModelDetailVO implements Serializable {

    @ApiModelProperty("模型id")
    private Integer id;

    @ApiModelProperty("中文表名")
    private String cnTableName;

    @ApiModelProperty("英文表名")
    private String enTableName;

    @ApiModelProperty("一级分类id")
    private Integer level1Id;

    @ApiModelProperty("一级分类")
    private String level1;

    @ApiModelProperty("二级分类id")
    private Integer level2Id;

    @ApiModelProperty("二级分类")
    private String level2;

    @ApiModelProperty("三级分类id")
    private Integer level3Id;

    @ApiModelProperty("三级分类")
    private String level3;

    @ApiModelProperty("服务器id")
    private Integer serverId;

    @ApiModelProperty("服务器ip")
    private String serverIp;

    @ApiModelProperty("服务器名称")
    private String serverName;

    @ApiModelProperty("数据库类型")
    private DataBaseType dataBaseType;

    @ApiModelProperty("数据库库名")
    private String databaseName;

    @ApiModelProperty("schema")
    private String schemaName;

    @ApiModelProperty("项目id")
    private Integer itemId;

    @ApiModelProperty("项目名称")
    private String itemName;

    @ApiModelProperty("说明")
    private String description;

    @ApiModelProperty("创建时间")
    private Date createTime;

    @ApiModelProperty("创建人名称")
    private String createAdminName;

    @ApiModelProperty("系统平台id")
    private Integer platformId;

    @ApiModelProperty("更新频率")
    private UpdateFrequency updateFreq;

    @ApiModelProperty("保存周期")
    private Integer psvCycle;

    @ApiModelProperty("数据样例")
    private List<FileVO> dataExamples;

}
